package com.lzx.dormsys.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lzx.dormsys.mapper.AreaBeanMapper;
import com.lzx.dormsys.bean.AreaBean;
import com.lzx.dormsys.service.IAreaBeanService;

/**
 * areaService业务层处理
 * 
 * @author lzx
 * @date 2021-09-10
 */
@Service
public class AreaBeanServiceImpl implements IAreaBeanService 
{
    @Autowired
    private AreaBeanMapper areaBeanMapper;

    /**
     * 查询area
     * 
     * @param areaId areaID
     * @return area
     */
    @Override
    public AreaBean selectAreaBeanById(Long areaId)
    {
        return areaBeanMapper.selectAreaBeanById(areaId);
    }

    /**
     * 查询area列表
     * 
     * @param areaBean area
     * @return area
     */
    @Override
    public List<AreaBean> selectAreaBeanList(AreaBean areaBean)
    {
        return areaBeanMapper.selectAreaBeanList(areaBean);
    }

    /**
     * 新增area
     * 
     * @param areaBean area
     * @return 结果
     */
    @Override
    public int insertAreaBean(AreaBean areaBean)
    {
        return areaBeanMapper.insertAreaBean(areaBean);
    }

    /**
     * 修改area
     * 
     * @param areaBean area
     * @return 结果
     */
    @Override
    public int updateAreaBean(AreaBean areaBean)
    {
        return areaBeanMapper.updateAreaBean(areaBean);
    }

    /**
     * 批量删除area
     * 
     * @param areaIds 需要删除的areaID
     * @return 结果
     */
    @Override
    public int deleteAreaBeanByIds(Long[] areaIds)
    {
        return areaBeanMapper.deleteAreaBeanByIds(areaIds);
    }

    /**
     * 删除area信息
     * 
     * @param areaId areaID
     * @return 结果
     */
    @Override
    public int deleteAreaBeanById(Long areaId)
    {
        return areaBeanMapper.deleteAreaBeanById(areaId);
    }
}
